home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / modula2 / 381 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  34 lines

  1. Newsgroups: comp.lang.modula2
  2. Path: cix.compulink.co.uk!usenet
  3. From: mark_tbu@cix.compulink.co.uk ("Mark Morgan Lloyd ")
  4. Subject: Re: Other Modula-2 Problems
  5. Message-ID: <Dnr7wv.8sJ@cix.compulink.co.uk>
  6. Organization: KDG Mobrey Telemetry
  7. References: <313171a2.15277270@news-stand.acs.ohio-state.edu>
  8. Date: Mon, 4 Mar 1996 17:43:43 GMT
  9. X-News-Software: Ameol
  10.  
  11. > I have some other questions also.  I have to make a program that uses
  12. > infinite series to approximate the value of SIN (a).  The line that my
  13. > teacher gave me for this is: "sin(a)=a-a3/3!+a5/5!-a7/7!+a9/9!...."
  14. > What does this translate to in the way of a formula?  I need to know
  15. > this so I can write a procedure that will use the variable that will
  16. > obviously be involved.
  17.  
  18. Sorry, this is trivial algebra and you shouldn't need to ask.
  19.  
  20. > Another problem concerns writing a procedure that will computer the
  21. > binary XOR's of two decimal numbers.  I know how to get the binary
  22. > values for each of the decimal numbers (using MOD & DIV), but how do I
  23. > compare the two binary numbers when I'm finished with this?  Is there
  24. > some kind of comparison command like with strings?
  25.  
  26. This does not make sense. Try expressing your problem a bit better and 
  27. you may be able to work out what you're trying to do.
  28.  
  29. Mark Morgan Lloyd
  30. mark_tbu@cix.compulink.co.uk
  31.  
  32. [Opinions above are the author's, not those of his employers or 
  33. colleagues]
  34.